# coding=utf-8
from flask import Blueprint

class MyBluePrint(Blueprint) :
    def __init__(self, name, import_name, static_folder=None,
                 static_url_path=None, template_folder=None,
                 url_prefix=None, subdomain=None, url_defaults=None,
                 root_path=None):
        super().__init__(name, import_name, static_folder=None,
                 static_url_path=None, template_folder=None,
                 url_prefix=None, subdomain=None, url_defaults=None,
                 root_path=None)

    def my_route(self, page_name, rule, **options):
        my_rule = "/" + page_name + rule
        return super().route(my_rule, **options)
